#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <vector>
#include <string>

using namespace std;

vector<int>  simplify(string s) {
	vector<int> ret;
	string cur;
	for (int i = 0; i < s.size(); ++i) {
		while (s[i] >= '0' && s[i] <= '9') {
			cur += s[i];
			++i;
		}
		if (cur != "")
			ret.push_back(stoi(cur)), cur = "";
	}
	return ret;
}

int main() {
	vector<int> ret = simplify("[[21,10,24],[12,12,15],[12,17,13],[19,20,11],[2,24,3],[8,19,13],[6,16,11],[25,21,5],[6,21,22],[2,9,24],[22,7,10],[13,13,20],[23,19,6],[8,6,23],[19,16,13],[12,18,13],[18,22,2],[6,17,17],[10,4,18],[12,17,21],[13,1,9],[19,3,20]]");
	for (auto& x : ret)
		cout << x << " ";
	return 0;
}
